/**
 * 
 */
package com.laozhao.deliveryManager.view;

import java.awt.BorderLayout;
import java.awt.Color;

import javax.swing.JFrame;
import javax.swing.JRootPane;
import javax.swing.JTabbedPane;
import javax.swing.plaf.BorderUIResource;

/**
 * @author LaoZhao
 * 
 */
public class MainWindowsFrame extends JFrame   {

	/**
	 * 
	 */
	private static final long serialVersionUID = -5135202476944048352L;
	// 中央容器
	protected JTabbedPane mainPane ;
		
	
	public MainWindowsFrame() {
		super();
		this.getRootPane().setWindowDecorationStyle(JRootPane.FRAME);
		initComponents();
		setSize(800, 600);
		setMinimumSize(getSize());
//		setResizable(false);
	}

	/**
	 * 初始化画面
	 */
	private void initComponents() {

		getContentPane().setLayout(new BorderLayout(20,10));
		
		mainPane = new JTabbedPane();
		mainPane.setBackground(Color.GRAY);
		
		mainPane.setBorder(BorderUIResource.getBlackLineBorderUIResource());
		
		getContentPane().add(mainPane, BorderLayout.CENTER);

		this.setTitle("ESMS");
		this.pack();
//		repaint();	
	}
}
